package com.tbit.common.constant;

/**
 * @author LMY
 * @create 2022-11-04 10:13
 */
public enum AccountDayStatEnum {
    CYCLING_INCOME(1, "骑行收入", "cycling_income"),
    CYCLING_EXPENSES(2, "骑行支出", "cycling_expenses"),
    USER_FINE_INCOME(3, "用户罚款收入", "user_fine_income"),
    USER_PENALTY_EXPENDITURE(4, "用户罚款支出", "user_penalty_expenditure"),
    INCOME_FROM_CYCLING_CARD(5, "骑行卡收入", "income_from_cycling_card"),
    BIKE_CARD_EXPENDITURE(6, "骑行卡支出", "bike_card_expenditure"),
    MEMBERSHIP_CARD_INCOME(7, "会员卡收入", "membership_card_income"),
    MEMBERSHIP_CARD_EXPENDITURE(8, "会员卡支出", "membership_card_expenditure"),
    CARD_FREE_INCOME(9, "免押卡收入", "card_free_income"),
    CHARGE_FREE_CARD_EXPENDITURE(10, "免押卡支出", "charge_free_card_expenditure"),
    COUPON_PACKAGE_INCOME(11, "优惠券套餐收入", "coupon_package_income"),
    COUPON_PACKAGE_EXPENDITURE(12, "优惠券套餐支出", "coupon_package_expenditure"),
    USER_RECHARGE_INCOME(13, "用户充值收入", "user_recharge_income"),
    USER_RECHARGE_EXPENDITURE(14, "用户充值支出", "user_recharge_expenditure"),
    MANUAL_RECHARGE(15, "手工充值", "manual_recharge"),
    MANUAL_DEDUCTION(16, "手工扣款", "manual_deduction"),
    INCOME_FROM_CYCLING_REFUND(17, "骑行退款收入", "income_from_cycling_refund"),
    CYCLING_CONSUMPTION_EXPENDITURE(18, "骑行消费支出", "cycling_consumption_expenditure"),
    OPENING_AND_CLOSING_BALANCE(19, "期初期末余额", "opening_and_closing_balance"),
    DEPOSIT_AT_THE_BEGINNING_AND_END_OF_THE_PERIOD(20, "期初期末押金", "deposit_at_the_beginning_and_end_of_the_period"),
    GIFT_CARD_AT_THE_BEGINNING_AND_END_OF_THE_PERIOD(21, "期初期末礼品卡", "gift_card_at_the_beginning_and_end_of_the_period"),
    DEBT_AT_THE_BEGINNING_AND_END_OF_THE_PERIOD(22, "期初期末欠款", "debt_at_the_beginning_and_end_of_the_period"),
    AMOUNT_OWED(23, "欠款金额", "amount_owed"),
    RECHARGE_AMOUNT_OF_ARREARS(24, "欠款补交充值金额", "recharge_amount_of_arrears"),
    SUPPLEMENTARY_VIRTUAL_AMOUNT_OF_ARREARS(25, "欠款补交虚拟金额", "supplementary_virtual_amount_of_arrears"),
    USER_RECHARGE_GIFT_CARD(26, "用户充值赠送礼品卡", "user_recharge_gift_card"),
    MANUAL_RECHARGE_GIFT_CARD(27, "手工充值礼品卡", "manual_recharge_gift_card"),
    GIFT_CARD_REDEMPTION(28, "礼品卡兑换", "gift_card_redemption"),
    USER_REFUNDS_DEDUCT_GIFT_CARDS(29, "用户退款扣除礼品卡", "user_refunds_deduct_gift_cards"),
    MANUALLY_DEDUCT_GIFT_CARDS(30, "手工扣除礼品卡", "manually_deduct_gift_cards"),
    RIDING_DISCOUNT_GIFT_CARD(31, "骑行抵扣礼品卡", "riding_discount_gift_card"),
    GIFT_CARD_DEDUCTION(32, "礼品卡抵扣费用", "gift_card_deduction"),
    REFUND_OF_GIFT_CARD_DEDUCTION_FEE(33, "礼品卡抵扣费用退款", "refund_of_gift_card_deduction_fee"),
    DEDUCTION_OF_ARTIFICIAL_VIRTUAL_AMOUNT(34, "人工虚拟金额抵扣费用", "deduction_of_artificial_virtual_amount"),
    REFUND_OF_ARTIFICIAL_VIRTUAL_AMOUNT_DEDUCTION_FEE(35, "人工虚拟金额抵扣费用退款", "refund_of_artificial_virtual_amount_deduction_fee"),
    MANUALLY_MODIFY_THE_ORDER_DEDUCTION_EXPENSE(36, "人工修改订单抵扣费用", "manually_modify_the_order_deduction_expense"),
    MANUALLY_MODIFY_THE_ORDER_DEDUCTION_FEE_REFUND(37, "人工修改订单抵扣费用退款", "manually_modify_the_order_deduction_fee_refund"),
    OTHER_VIRTUAL_DEDUCTION_EXPENSES(38, "其他虚拟抵扣费用", "other_virtual_deduction_expenses"),
    REFUND_OF_OTHER_VIRTUAL_DEDUCTION_FEES(39, "其他虚拟抵扣费用退款", "refund_of_other_virtual_deduction_fees"),
    TOTAL_NUMBER_OF_VEHICLES(40, "车辆总数", "total_number_of_vehicles"),
    NUMBER_OF_VEHICLES_LAUNCHED(41, "已投放车辆数", "number_of_vehicles_launched"),
    AVERAGE_VEHICLE_INCOME(42, "车均收入", "average_vehicle_income"),
    NUMBER_OF_NEW_USERS(43, "新增用户数", "number_of_new_users"),
    NUMBER_OF_ORDERS_PER_VEHICLE(44, "车均订单数", "number_of_orders_per_vehicle"),
    REVENUE_FROM_MERCHANT_PLATFORM(45, "商户平台收入", "revenue_from_merchant_platform"),
    MERCHANT_PLATFORM_EXPENDITURE(46, "商户平台支出", "merchant_platform_expenditure"),
    WECHAT_MERCHANT_INCOME(47, "微信商户收入", "wechat_merchant_income"),
    WECHAT_MERCHANT_SPENDING(48, "微信商户支出", "wechat_merchant_spending"),
    ALIPAY_MERCHANT_INCOME(49, "支付宝商户收入", "alipay_merchant_income"),
    ALIPAY_MERCHANT_EXPENSES(50, "支付宝商户支出", "alipay_merchant_expenses"),
    REMITTANCE_OF_MERCHANT_INCOME(51, "汇付商户收入", "remittance_of_merchant_income"),
    REMITTING_PAYMENTS_TO_MERCHANTS(52, "汇付商户支出", "remitting_payments_to_merchants"),
    PURCHASE_INCOME(53, "购卡收入", "purchase_income"),
    PURCHASE_COSTS(54, "购卡支出", "purchase_costs"),
    USER_DEPOSIT_INCOME(55, "用户押金收入", "user_deposit_income"),
    USER_DEPOSIT_EXPENDITURE(56, "用户押金支出", "user_deposit_expenditure"),
    OPERATING_INCOME(57, "运营收入", "operating_income"),
    OPERATING_EXPENSES(58, "运营支出", "operating_expenses"),
    NUMBER_OF_OPERATIONAL_VEHICLES(59, "可运营车辆数", "number_of_operational_vehicles"),
    ;
    /**
     * 数据类型
     */
    private Integer dataType;
    /**
     * 类型解析
     */
    private String name;


    AccountDayStatEnum(int type, String name, String fieldName) {
        this.dataType = type;
        this.name = name;
    }

    /**
     * 获取期初期末枚举
     *
     * @return
     */
    public static AccountDayStatEnum[] getAtTheBeginningTheFinalEnums() {
        return new AccountDayStatEnum[]
                {
                        OPENING_AND_CLOSING_BALANCE,
                        DEPOSIT_AT_THE_BEGINNING_AND_END_OF_THE_PERIOD,
                        GIFT_CARD_AT_THE_BEGINNING_AND_END_OF_THE_PERIOD,
                        DEBT_AT_THE_BEGINNING_AND_END_OF_THE_PERIOD
                };
    }

    public Integer getDataType() {
        return dataType;
    }

    public void setDataType(int dataType) {
        this.dataType = dataType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
